package com.kcwl;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import com.kcwl.framework.swagger.EnableSwagger2Doc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;


/**
 * @author ckwl
 */
@EnableSwagger2Doc
@SpringBootApplication
@MapperScan({"com.kcwl.carrier.domain.repository.mapper", "com.kcwl.carrier.infrastructure.repository.mapper","com.kcwl.common.log.dao"})
@EnableApolloConfig(value = {"application", "redis", "common", "gray-service", "jdbc-carrier", "dict", "jdbc-common-v6"})
@EnableDiscoveryClient
@EnableFeignClients
@EnableScheduling
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(CarrierApplication.class, args);
    }
}
